package com.small.nacos.core.cluster.lookup;

import com.small.nacos.core.cluster.AbstractMemberLookup;
import com.small.nacos.core.cluster.MemberUtil;
import com.small.nacos.sys.env.EnvUtil;
import com.small.nacos.sys.utils.InetUtils;

import java.util.Collections;

/**
 * @Author zhoujin
 * @Date 2022/11/9 15:24
 */
public class StandaloneMemberLookup extends AbstractMemberLookup {

    @Override
    protected void doStart() {
        String url = InetUtils.getSelfIP() + ":" + EnvUtil.getPort();

        afterLookup(MemberUtil.readServerConf(Collections.singletonList(url)));
    }
}
